<?php

namespace app\common\model;

use think\Model;

class Admin extends Model
{

    //get the user information by username
    public function getInfoByUserName($uname)
    {
        $where = [
            'uname' => $uname,
            'status' => 0,
        ];
        $res = $this->where($where)->find();
        return $res;

    }

}